package com.shop.vuedemo.exception;

import lombok.Getter;

/**
 * projectName: vueDemo
 * create on 2021/11/14 11:34
 *
 * @author yanbl
 * @Description :
 */
@Getter
public class BaseErrorType extends RuntimeException {

    private ErrorType errorType;

    public BaseErrorType() {
        this.errorType = SysErrorType.SYSTEM_ERROR;
    }

    public BaseErrorType(ErrorType errorType) {
        this.errorType = errorType;
    }

    public BaseErrorType(ErrorType errorType, String message) {
        super(message);
        this.errorType = errorType;
    }

    public BaseErrorType(ErrorType errorType, String message, Throwable cause) {
        super(message, cause);
        this.errorType = errorType;
    }

}
